home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Lose Your Marbles! 1.0 / source / Shell ƒ / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.7 KB  |  43 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        prefs.h
  4.  
  5. Purpose:    This is the header file for prefs.c
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program in a file named "GNU General Public License".
  19. If not, write to the Free Software Foundation, 675 Mass Ave,
  20. Cambridge, MA 02139, USA.
  21.  
  22. \**********************************************************************/
  23.  
  24. extern    Str255            gMyName;
  25. extern    Str255            gMyOrg;
  26.  
  27. enum PrefErrorTypes        /* possible error codes */
  28. {
  29.     prefs_allsWell=0,                /* no error */
  30.     prefs_diskReadErr,                /* error reading prefs file */
  31.     prefs_diskWriteErr,                /* error writing prefs file */
  32.     prefs_cantOpenPrefsErr,            /* error trying to open prefs file */
  33.     prefs_cantCreatePrefsErr,        /* error trying to create new prefs file */
  34.     prefs_noMorePrefsErr,            /* no more prefs found in prefs file */
  35.     prefs_versionNotSupportedErr,    /* prefs file created by later version of program */
  36.     prefs_virginErr,                /* prefs file didn't exist -- first time running */
  37.     prefs_IDNotMatchErr                /* file ID in current prefs doesn't match program's ID */
  38. };
  39.  
  40. void SaveThePrefs(void);
  41. enum PrefErrorTypes PreferencesInit(void);
  42. void PrefsError(enum PrefErrorTypes err);
  43.